<?php

$userid     = get_loggedin_userid();
$rating_id  = get_input('rating_id');
$offset     = get_input('offset');
$limit      = get_input('limit');

$comments = get_interest_comments_on($rating_id);

$return = array();
foreach($comments as $comment) {
    $return[] = to_comment_array($comment);
}

echo json_encode(export_result(200, $return));

?>